package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.Coursemark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CoursemarkMapper {
    //添加用户评价
    int addCoursemark(Coursemark coursemark);
    //删除用户评价
    int deleteCoursemark(int id);

    //修改用户评价
    int updateCoursemark(Coursemark coursemark);

    List<Coursemark> selectCoursemark(@Param("nickName") String nickName,@Param("courseName") String courseName);

    //根据课程id查询课程
    List<Coursemark> findCoursemarkByCourseId(int id);

}
